<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>ES6实现数据劫持</title>
</head>

<body>

  <div id="app">
    <h3>姓名是：{{name}}</h3>
    <h3>年龄是：{{ age }}</h3>
    <h3>info.a的值是：{{info.a}}</h3>
    <div>name的值：<input type="text" v-model="name" /></div>
    <div>info.a的值：<input type="text" v-model="info.a" /></div>
  </div>

  <script src="./Vue.js"></script>
  <script>
    const vm = new Vue({
      el: "#app",
      data: {
        name: 'zs',
        age: 20,
        info: {
          a: 1,
          c: 2,
        },
      }
    })
    console.log()
  </script>

</body>

</html>